class UserModel {
  String id;
  String phone;
  String name;
  int grade;
  String avatar;
  UserModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    phone = json['phone'];
    name = json['name'];
    grade = json['grade'];
    avatar = json['avatar'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['phone'] = this.phone;
    data['name'] = this.name;
    data['grade'] = this.grade;
    data['avatar'] = this.avatar;
    return data;
  }
}

class homePageModel {
  String id;
  String name;
  String state;
  int money;
  String date;

  homePageModel.fromJson(Map<String, dynamic> json) {}

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['state'] = this.state;
    data['money'] = this.money;
    data['date'] = this.date;
    return data;
  }
}
